import { Component, OnInit } from '@angular/core';
import {AccountService} from '../../../service/account.service';
import {AuthService} from '../../../service/auth.service';
import {DeepCopyTool} from '../../../tool/deepCopy.tool';

@Component({
  selector: 'app-edit-info',
  templateUrl: './edit-info.component.html',
  styleUrls: ['./edit-info.component.css']
})
export class EditInfoComponent implements OnInit {
  company: any = this.copy.deepCopy(this.authService.company);
  talent: any = this.copy.deepCopy(this.authService.talent);
  constructor(
    public accountService: AccountService,
    public authService: AuthService,
    public copy: DeepCopyTool
  ) {}

  ngOnInit() {
  }
  editCompany() {
    // debugger
    this.accountService.editCompany(this.company);
  }
  editTalent() {
    this.accountService.editTalent(this.talent);
  }

}
